import java.util.Scanner;

//输入三个数abc，按大小顺序输出
public class Program34 {
    public static void main(String[] args) {
        //假设输入三个均为整数
        int a,b,c;
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入三个数：");
        a = sc.nextInt();
        b = sc.nextInt();
        c = sc.nextInt();
        //按从小到大顺序输出
        if (a<b){
            if (a<c){
                System.out.print(a+" ");
                if (b<c) System.out.print(b+" "+c);
                else System.out.print(c+" "+b);
            }else System.out.print(c+" "+a+" "+b);
        }else {
            if (b<c) {
                System.out.print(b + " ");
                if (a<c) System.out.print(a+" "+c);
                else System.out.print(c+" "+a);
            }
            else System.out.print(c+" "+b+" "+a);
        }
    }
}
